﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BaseFrame.Entity
{
    public class TreeEntity
    {
        [SqlSugar.SugarColumn(IsPrimaryKey = true)]
        public int Id { get; set; } //关联字段 (如果非主键的话，也要设成主键才会有效，可以新建个类)
        public string Name { get; set; }
        public int ParentId { get; set; }//父级字段
        [SqlSugar.SugarColumn(IsIgnore = true)]
        public List<TreeEntity> Child { get; set; }
    }
}
